import { get, post } from "./index";

/* 封装菜单列表接口 */
//菜单列表
export const getMenu = () => get("/menulist", { istree: true });
//菜单列表删除
export const delMenu = (data) => post("/menudelete", data);
//菜单列表
export const getMenuInfo = data => get("/menuinfo", data);
//菜单列表添加
export const addMenu = (data) => post("/menuadd", data);
//菜单列表编辑
export const editMenu = (data) => post("/menuedit", data);
//登录接口
export const userLogin = (data) => post('/userlogin', data)